# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=Capture-Tiny
pkgname=perl-${_realname}
pkgver=0.30
pkgrel=1
pkgdesc="Capture STDOUT and STDERR from Perl, XS or external programs"
arch=('any')
license=('PerlArtistic' 'GPL')
depends=('perl')
groups=('perl-modules')
url="http://search.cpan.org/dist/Capture-Tiny"
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_realname-$pkgver.tar.gz")
md5sums=('7b0fbdbf4199724df1e53fe0b3e2ef4c')

build() {
  cd "$srcdir/$_realname-$pkgver"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir/$_realname-$pkgver"
  make DESTDIR="$pkgdir" install
}
